package com.ggg.lx1;

public class Lx1 {
    public static void main(String[] args) {
        int[] s={55,11,18,484,5,154,5};
       // ffs(s);
        max(s);
        min(s);
    }

    public static void ffs(int[] y) {
        for (int i=0;i<y.length;i++){
            System.out.println( y[i] );
        }
    }

    public static void max(int[] x){
        int a=x[0];
        for (int i =0;i<x.length;i++){
            if (a<x[i])
                a=x[i];

        }
        System.out.println(a);
    }

    public static void min(int[] x){
        int a=x[0];
        for (int i =0;i<x.length;i++){
            if (a>x[i])
                a=x[i];

        }
        System.out.println(a);
    }

}
